package com.niit.musicserver.mapper;

import com.niit.musicserver.entity.domain.Songlist;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description:
 * @Author: cheng_jianzhen
 * @CreateTime： 2024/1/15 9:55
 */

@Repository
public interface SonglistMapper {

    /**
     * @Description: 【管理员侧】查询所有歌单列表
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/15 10:09
     * @param: songlist
     * @return: java.util.List<com.niit.musicserver.entity.domain.Songlist>
     **/
    List<Songlist> selectListBySonglist(Songlist songlist);

    /**
     * @Description: 根据歌单从数据库中查询对应歌单记录
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/17 9:27
     * @return: com.niit.musicserver.entity.domain.Songlist
     **/
    Songlist selectById(Integer id);

    /**
     * @param songlist
     * @Description: 根据id更新歌单信息
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/17 10:19
     * @param: songlist
     * @return: int
     */
    int updateById(Songlist songlist);


    /**
     * @Description: 新增歌单
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/17 11:04
     * @param: songlist
     * @return: int
     **/
    int insertSonglist(Songlist songlist);



    /**
     * @Description: 根据id删除歌单
     * @Author: cheng_jianzhen
     * @CreateTime: 2024/1/18 8:55
     * @param: id
     * @return: int
     **/
    int deleteById(Integer id);
}
